import request from '@/utils/request'

// 查询边管理列表
export function listManageEdge(query) {
  return request({
    url: '/manager/manageEdge/list',
    method: 'get',
    params: query
  })
}

// 查询边管理详细
export function getManageEdge(edgeId) {
  return request({
    url: '/manager/manageEdge/getInfo/' + edgeId,
    method: 'get'
  })
}

// 新增边管理
export function addManageEdge(data) {
  return request({
    url: '/manager/manageEdge/add',
    method: 'post',
    data: data
  })
}

// 修改边管理
export function updateManageEdge(data) {
  return request({
    url: '/manager/manageEdge/edit',
    method: 'post',
    data: data
  })
}

// 删除边管理
export function delManageEdge(edgeId) {
  return request({
    url: '/manager/manageEdge/remove/' + edgeId,
    method: 'get'
  })
}
export function edgeInit(data) {
  return request({
    url: '/manager/manageEdge/init',
    method: 'post',
    data: data
  })
}
// 从后台获取边信息
export function getEdgeInfo() {
  return request({
    url: '/manager/manageEdge/getInfo/',
    method: 'get'
  })
}// 从后台获取边信息
export function createRegistered(query) {
  return request({
    url: '/manager/manageEdge/createRegistered/',
    method: 'get',
    params: query,
    timeout: 600000
  })
}